package com.lemon.smartsafety.entity.main;

import com.lemon.smartsafety.app.ApplicationInfo.ApplicationCode;
import com.lemon.smartsafety.app.ApplicationInfo.WorkOptionCodeEnum;

/**
 * Created by Cooliean on 16/1/19.
 * 主界面的按钮对象
 */
public class MainPanelButton {
    private int titleRes;
    private int iconRes;
    private int colorRes;
    private int badgeCount = 0;
    private int bgRes=-1;

    private String className;

    private ApplicationCode applicationCode;

    private WorkOptionCodeEnum workOptionCode; //add by Andrew.yin 2017/7/3


    public MainPanelButton() {
    }

    public MainPanelButton(int titleRes, int iconRes, int colorRes) {
        this.titleRes = titleRes;
        this.iconRes = iconRes;
        this.colorRes = colorRes;
        this.badgeCount = 0;
    }
    public MainPanelButton(int titleRes, int iconRes, int colorRes, ApplicationCode c) {
        this.titleRes = titleRes;
        this.iconRes = iconRes;
        this.colorRes = colorRes;
        this.applicationCode = c;
    }

    public MainPanelButton(int titleRes, int iconRes, int colorRes, int bgRes, ApplicationCode applicationCode) {
        this.titleRes = titleRes;
        this.iconRes = iconRes;
        this.colorRes = colorRes;
        this.bgRes = bgRes;
        this.applicationCode = applicationCode;
    }

    public MainPanelButton(int titleRes, int iconRes, int colorRes, String className, ApplicationCode c) {
        this.titleRes = titleRes;
        this.iconRes = iconRes;
        this.colorRes = colorRes;
        this.className = className;
        this.applicationCode = c;
    }

    public MainPanelButton(int titleRes, int iconRes, int colorRes, String className, int bgRes, ApplicationCode applicationCode) {
        this.titleRes = titleRes;
        this.iconRes = iconRes;
        this.colorRes = colorRes;
        this.className = className;
        this.bgRes = bgRes;
        this.applicationCode = applicationCode;
    }

    //add by Andrew.yin 2017/7/3 begin. 为了工作页面的页面布局
    public MainPanelButton(int titleRes, int iconRes, int colorRes, String className, int bgRes, WorkOptionCodeEnum workOptionCode) {
        this.titleRes = titleRes;
        this.iconRes = iconRes;
        this.colorRes = colorRes;
        this.className = className;
        this.bgRes = bgRes;
        this.workOptionCode = workOptionCode;
    }
    //add by Andrew.yin 2017/7/3 end. 为了工作页面的页面布局

    public int getBgRes() {
        return bgRes;
    }

    public void setBgRes(int bgRes) {
        this.bgRes = bgRes;
    }

    public int getTitleRes() {
        return titleRes;
    }

    public void setTitleRes(int titleRes) {
        this.titleRes = titleRes;
    }

    public int getIconRes() {
        return iconRes;
    }

    public void setIconRes(int iconRes) {
        this.iconRes = iconRes;
    }

    public int getColorRes() {
        return colorRes;
    }

    public void setColorRes(int colorRes) {
        this.colorRes = colorRes;
    }

    public int getBadgeCount() {
        return badgeCount;
    }

    public void setBadgeCount(int badgeCount) {
        this.badgeCount = badgeCount;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public WorkOptionCodeEnum getWorkOptionCode() {
        return workOptionCode;
    }

    public void setWorkOptionCode(WorkOptionCodeEnum workOptionCode) {
        this.workOptionCode = workOptionCode;
    }

    public ApplicationCode getApplicationCode() {
        return applicationCode;
    }

    public void setApplicationCode(ApplicationCode applicationCode) {
        this.applicationCode = applicationCode;
    }
}
